package com.vrv.app.cyberspace.modules.sys.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author sm
 * @since 2017-12-15
 */
@TableName("FEEDBACK_TABLE")
public class FeedbackTable extends Model<FeedbackTable> implements Cloneable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 反馈组织ID
     */
    private String feedbackOrgID;
    /**
     * 反馈单位
     */
    private String feedbackUnit;

    /**
     * 填写人ID
     */
    private String writerID;
    /**
     * 填写人
     */
    private String writerName;
    /**
     * 填写时间
     */
    private Date writingTime;

    /**
     * 填写人联系方式
     */
    private String writerPhone;
    /**
     * 系统运行情况
     */
    private String systemSituation;
    /**
     * 受攻击次数
     */
    private Integer attackNumber;
    /**
     * 发生事件次数
     */
    private Integer eventNumber;

    /**
     * 情况描述
     */
    private String situationDesc;
    /**
     * 关联的每日零报告ID
     */
    private Integer reportID;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否提交
     */
    private Integer isSubmit;

    /**
     * 下发IDs集合
     */
    private String downsSet;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFeedbackOrgID() {
        return feedbackOrgID;
    }

    public void setFeedbackOrgID(String feedbackOrgID) {
        this.feedbackOrgID = feedbackOrgID;
    }

    public String getFeedbackUnit() {
        return feedbackUnit;
    }

    public void setFeedbackUnit(String feedbackUnit) {
        this.feedbackUnit = feedbackUnit;
    }

    public String getWriterID() {
        return writerID;
    }

    public void setWriterID(String writerID) {
        this.writerID = writerID;
    }

    public String getWriterName() {
        return writerName;
    }

    public void setWriterName(String writerName) {
        this.writerName = writerName;
    }

    public String getWriterPhone() {
        return writerPhone;
    }

    public void setWriterPhone(String writerPhone) {
        this.writerPhone = writerPhone;
    }

    public Date getWritingTime() {
        return writingTime;
    }

    public void setWritingTime(Date writingTime) {
        this.writingTime = writingTime;
    }

    public String getSystemSituation() {
        return systemSituation;
    }

    public void setSystemSituation(String systemSituation) {
        this.systemSituation = systemSituation;
    }

    public Integer getAttackNumber() {
        return attackNumber;
    }

    public void setAttackNumber(Integer attackNumber) {
        this.attackNumber = attackNumber;
    }

    public Integer getEventNumber() {
        return eventNumber;
    }

    public void setEventNumber(Integer eventNumber) {
        this.eventNumber = eventNumber;
    }

    public String getSituationDesc() {
        return situationDesc;
    }

    public void setSituationDesc(String situationDesc) {
        this.situationDesc = situationDesc;
    }

    public Integer getReportID() {
        return reportID;
    }

    public void setReportID(Integer reportID) {
        this.reportID = reportID;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getIsSubmit() {
        return isSubmit;
    }

    public void setIsSubmit(Integer isSubmit) {
        this.isSubmit = isSubmit;
    }

    public String getDownsSet() {
        return downsSet;
    }

    public void setDownsSet(String downsSet) {
        this.downsSet = downsSet;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FeedbackTable{" +
                ", id=" + id +
                ", feedbackUnit=" + feedbackUnit +
                ", writer=" + writerName +
                ", writingTime=" + writingTime +
                ", systemSituation=" + systemSituation +
                ", attackNumber=" + attackNumber +
                ", eventNumber=" + eventNumber +
                ", reportID=" + reportID +
                "}";
    }

    @Override
    public FeedbackTable clone() throws CloneNotSupportedException {
        return (FeedbackTable) super.clone();
    }

    @TableField(exist = false)
    private DailyReport dailyReport;

    public DailyReport getDailyReport() {
        return dailyReport;
    }

    public void setDailyReport(DailyReport dailyReport) {
        this.dailyReport = dailyReport;
    }

    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer size;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
